import React, { useEffect } from 'react'

export default function Son() {

    useEffect(()=>{
        console.log('Son didMount')
        return ()=>{ // componentWillUnmount
            console.log('我是 组件即将卸载执行');
        }
    }, [] );
    return (
        <div>Son</div>
    )
}
